package com.ionehe.group.common.uaa.ex.convert;

import com.ionehe.group.common.uaa.ex.model.UaaFunction;
import com.ionehe.group.common.uaa.ex.dto.FunctionDTO;
import com.ionehe.group.common.uaa.ex.dto.FunctionDetailDTO;
import org.mapstruct.Mapper;

import java.time.LocalDateTime;
import java.time.ZoneId;
import java.util.Date;
import java.util.List;

/**
 * Copyright (c) 2020 ionehe.com
 * Date: 2020/11/25
 * Time: 10:29 下午
 *
 * @author 2020年 <a href="mailto:a@ionehe.com">秀</a>
 */
@Mapper(componentModel = "spring", imports = {LocalDateTime.class, Date.class, ZoneId.class})//交给spring管理
public interface FunctionConvert {

    FunctionDTO do2dto(UaaFunction function);

    List<FunctionDTO> do2dto(List<UaaFunction> functionList);

    FunctionDetailDTO do2Detaildto(UaaFunction function);

    List<FunctionDetailDTO> dolist2dto(List<UaaFunction> functionList);

}
